const { resolve } = require("path");//改别名
const { override, fixBabelImports, addWebpackAlias} = require('customize-cra');

// module.exports = function override(config, env) {
//     // do stuff with the webpack config...
//     //3自定义目录符号
//     override(
//       fixBabelImports('import', {
//         libraryName: 'antd-mobile',
//         style: 'css',
//       },config)=>{
//         config.resolve.alias['@'] = path.resolve(__dirname,'./src')

//         return config;
//       }


// };


module.exports = override(
  fixBabelImports('import', {
    libraryName: 'antd-mobile',
    style: 'css',
  }),
  addWebpackAlias({//改别名
    "@": resolve("src")
  }),
)

